home *** CD-ROM | disk | FTP | other *** search
- *** ./Makefile.in Sun Feb 14 04:18:33 1999
- --- ../leafnode-1.9/./Makefile.in Wed Feb 17 14:19:34 1999
- ***************
- *** 24,31 ****
- BINDIR = $(PREFIX_USR)/sbin
- MANDIR = $(PREFIX_USR)/man
- SPOOLDIR = $(PREFIX_VAR)/spool/news
- ! LIBDIR = /usr/lib/leafnode
- ! LOCKFILE = "/var/lock/news/fetch.lck"
-
- # RPM crap
- RPM = @RPM@
- --- 24,31 ----
- BINDIR = $(PREFIX_USR)/sbin
- MANDIR = $(PREFIX_USR)/man
- SPOOLDIR = $(PREFIX_VAR)/spool/news
- ! LIBDIR = $(PREFIX_USR)/lib/leafnode
- ! LOCKFILE = $(SPOOLDIR)/fetch.lck
-
- # RPM crap
- RPM = @RPM@
- *** ./fetch.c Sun Feb 14 04:18:33 1999
- --- ../leafnode-1.9/./fetch.c Mon Mar 1 11:52:13 1999
- ***************
- *** 21,26 ****
- --- 21,27 ----
- #ifdef BSD
- #include <sys/errno.h>
- #endif
- +
- #include <ctype.h>
- #include <dirent.h>
- #include <fcntl.h>
- ***************
- *** 834,844 ****
- syslog( LOG_INFO, "article %s already stored", c );
- continue; /* for some reasons, article is already there */
- } else if ( errno == ENOENT ) {
- ! f = fopen( c, "w" );
- ! if ( !f ) {
- ! syslog( LOG_ERR, "unable to store article %s: %m", c );
- if ( verbose )
- ! printf( "unable to store article %s\n", c );
- continue;
- }
- } else {
- --- 835,870 ----
- syslog( LOG_INFO, "article %s already stored", c );
- continue; /* for some reasons, article is already there */
- } else if ( errno == ENOENT ) {
- ! if ( (f = fopen( c, "w" )) == NULL ) {
- ! /* Check if the directory exist */
- ! char * newc = strdup (c);
- ! if ( newc != NULL ) {
- ! char * slp = strrchr (newc, '/');
- ! struct stat ds;
- !
- ! if ( slp != NULL ) {
- ! *slp = '\0';
- ! }
- !
- ! if ( stat (newc, & ds) ) {
- ! if ( mkdir (newc, 0775) < 0 ) {
- ! syslog (LOG_ERR, "Cannot create directory %s: %m"
- ! , newc);
- ! if ( verbose ) {
- ! printf ("Cannot create directory %s\n", newc);
- ! }
- ! }
- ! }
- !
- ! free (newc);
- ! f = fopen (c, "w"); /* Try opening file again */
- ! }
- ! }
- !
- ! if ( f == NULL ) {
- ! syslog( LOG_ERR, "unable to create article %s: %m", c );
- if ( verbose )
- ! printf( "unable to create article %s\n", c );
- continue;
- }
- } else {
- ***************
- *** 1215,1221 ****
- while ( (de=readdir(d)) ) {
- if ( isalnum( *(de->d_name) ) ) {
- g = findgroup( de->d_name );
- ! if ( g ) {
- g->alive = 1;
- sprintf( s, "%s ", g->name );
- l = havefile ? strstr( stuff, s ) : 0;
- --- 1241,1247 ----
- while ( (de=readdir(d)) ) {
- if ( isalnum( *(de->d_name) ) ) {
- g = findgroup( de->d_name );
- ! if ( g != NULL ) {
- g->alive = 1;
- sprintf( s, "%s ", g->name );
- l = havefile ? strstr( stuff, s ) : 0;
- ***************
- *** 1229,1238 ****
- getmarked( g );
- if ( f != NULL )
- fprintf( f, "%s %d\n", g->name, newserver );
- ! } else {
- printf( "%s not found in groupinfo file\n", g->name );
- syslog( LOG_INFO, "%s not found in groupinfo file", g->name );
- ! }
- }
- }
- closedir( d );
- --- 1255,1264 ----
- getmarked( g );
- if ( f != NULL )
- fprintf( f, "%s %d\n", g->name, newserver );
- ! } /* If g is NULL, we probably should use it, show we? else {
- printf( "%s not found in groupinfo file\n", g->name );
- syslog( LOG_INFO, "%s not found in groupinfo file", g->name );
- ! } */
- }
- }
- closedir( d );
- *** ./newsq.c Sun Feb 14 04:18:33 1999
- --- ../leafnode-1.9/./newsq.c Wed Feb 17 13:28:19 1999
- ***************
- *** 27,38 ****
- sprintf( s, "%s/out.going", spooldir );
- if ( chdir(s) < 0 ) {
- fprintf( stderr, "Cannot change to %s -- aborting.\n", s );
- ! exit;
- }
- d = opendir( "." );
- if ( !d ) {
- fprintf( stderr, "Cannot open directory %s -- aborting.\n", s );
- ! exit;
- }
- while ( ( de = readdir(d) ) ) {
- if ( stat( de->d_name, &st ) ) {
- --- 27,38 ----
- sprintf( s, "%s/out.going", spooldir );
- if ( chdir(s) < 0 ) {
- fprintf( stderr, "Cannot change to %s -- aborting.\n", s );
- ! exit (1);
- }
- d = opendir( "." );
- if ( !d ) {
- fprintf( stderr, "Cannot open directory %s -- aborting.\n", s );
- ! exit (1);
- }
- while ( ( de = readdir(d) ) ) {
- if ( stat( de->d_name, &st ) ) {
- *** ./leafnode.h Sun Feb 14 04:18:33 1999
- --- ../leafnode-1.9/./leafnode.h Mon Mar 1 11:49:32 1999
- ***************
- *** 18,28 ****
- #define PATH_MAX MAXPATHLEN
- #endif
-
- ! #ifdef HAVE_CONFIG_H
- ! #include <config.h>
- ! #endif
-
- #ifdef HAVE_ERRNO_H
- #include <errno.h>
- #include <sys/errno.h>
- #endif
- --- 18,28 ----
- #define PATH_MAX MAXPATHLEN
- #endif
-
- ! #include "config.h"
-
- #ifdef HAVE_ERRNO_H
- + static const int have_errno_h = HAVE_ERRNO_H;
- +
- #include <errno.h>
- #include <sys/errno.h>
- #endif
- *** ./checkgroups.c Sun Feb 14 04:18:33 1999
- --- ../leafnode-1.9/./checkgroups.c Mon Mar 1 11:52:54 1999
- ***************
- *** 27,34 ****
- #include <sys/resource.h>
- #include <unistd.h>
-
- ! const int debug = 0;
- ! const int verbose = 0;
-
- #include "leafnode.h"
-
- --- 27,34 ----
- #include <sys/resource.h>
- #include <unistd.h>
-
- ! int debug = 0;
- ! int verbose = 0;
-
- #include "leafnode.h"
-
-